<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/bootstrap.css">
    <title>表单控件</title>
</head>
<body>
    <h3>请选择你的爱好</h3>
    <!-- 要实现水平排布的选择框有两种方法 -->
    <!-- 1.使用.form-group包裹整个选择框的标签，然后添加form-check-inline -->
    <!-- 2.将选择框中div的form-check都改成form-check-inline -->
    <div class="form-group form-check-inline">
    <!-- form-check用于创建垂直选择框 -->
    <div class="form-check">
        <!-- form-check-label调整label之间的边距 -->
        <label class="form-check-label">
            <!-- form-check-input 将选择框应用boostsrap的样式 -->
            <input class="form-check-input" type="checkbox" name="hobby"> 篮球
        </label>
    </div>
    <div class="form-check">
        <label class="form-check-label">
            <input class="form-check-input" type="checkbox" name="hobby"> 唱
        </label>
    </div>
    <div class="form-check">
        <label class="form-check-label">
            <input class="form-check-input" type="checkbox" name="hobby"> 跳
        </label>
    </div>
    <div class="form-check">
        <label class="form-check-label">
            <input class="form-check-input"type="checkbox" name="hobby"> rap
        </label>
    </div>
</div>
<hr>
<h3>请选择你的性别</h3>
<div class="form-check">
    <label class="form-check-label">
        <!-- 在选择框中是通过name属性来判断是否实在同一组中 -->
        <input class="form-check-input"type="radio" name="gender"> 男
    </label>
</div>
<div class="form-check">
    <label class="form-check-label">
        <input class="form-check-input"type="radio" name="gender"> 女
    </label>
</div>
<h3>请选择生日</h3>
<!-- .custom-select给选择框应用boostrap的样式，可以添加muliple来允许选择框选择多个项目 -->
<select class="custom-select" >
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
</select>
</body>
</html>